package com.supersoul.myself.entity.vo;

import lombok.Data;
import org.springframework.lang.Nullable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class LoginVO {
    @NotEmpty
    @Size(max = 11, message = "phone为11位")
    @Pattern(regexp = "^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$", message = "手机号格式不对")
    private String phone;
    @NotEmpty
    @Size(max = 6, message = "code为6位")
    private String code;
}
